package com.jmb.api.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName api_test_case_assert_log
 */
@TableName(value ="api_test_case_assert_log")
@Data
public class ApiTestCaseAssertLog extends BaseEntity {
    /**
     * 断言日志id
     */
    @TableId(value = "assert_log_id", type = IdType.AUTO)
    private Integer assertLogId;

    /**
     * 执行日志id
     */
    @TableField(value = "execute_log_id")
    private Integer executeLogId;

    /**
     * 断言id
     */
    @TableField(value = "assert_id")
    private Integer assertId;

    /**
     * 断言名称
     */
    @TableField(value = "assert_name")
    private String assertName;

    /**
     * 测试用例编号id
     */
    @TableField(value = "case_id")
    private Integer caseId;

    /**
     * 提取数据类型   0json/1html/2header/3responsecode/4runtime
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 提取表达式
     */
    @TableField(value = "expression")
    private String expression;

    /**
     * 操作符0/=、1/< 、2/>、3/<=、4/>=、5/in、6/!=、7/re、8/isNull、9/notNull
     */
    @TableField(value = "operator")
    private Integer operator;

    /**
     * 预期结果
     */
    @TableField(value = "excepted_result")
    private String exceptedResult;

    /**
     * 未清洗前的预期结果
     */
    @TableField(value = "raw_excepted_result")
    private String rawExceptedResult;

    /**
     * 排序 执行断言时按照该字段排序
     */
    @TableField(value = "order")
    private Integer order;

    /**
     * 实际运行结果
     */
    @TableField(value = "actual_result")
    private String actualResult;

    /**
     * 是否通过 0通过 1失败 2错误
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 断言出错异常信息
     */
    @TableField(value = "error_message")
    private String errorMessage;

    /**
     * 
     */
    @TableField(value = "created_time")
    private Date createdTime;
}